package me.jiatao.mvpdagger2.mvc.news;

import android.os.Handler;

import java.util.List;

import javax.inject.Inject;

import me.jiatao.mvpdagger2.mvc.base.BasePresenter;


/**
 * Created by JiaTao on 2018/8/30.
 * Email: 535318720@qq.com
 * Version: 1.0
 * Description:
 */
public class NewsPresenter extends BasePresenter<INewsContract.INewsView, NewsModel>
        implements INewsContract.INewsPresenter {

    @Inject
    public NewsPresenter(INewsContract.INewsView mView, NewsModel mModel) {
        super(mView, mModel);
    }

    @Override
    public void getNewsList() {
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                List<String> stringList = getModel().getNewsList();
                getView().onNewsSucceed(stringList);

            }
        }, 500);

    }
}
